package net.wanho.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

/**
 * Author：汤小洋
 * Date：2024-09-09 15:47
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "student")
public class Student implements Serializable {
    @Id
    private Integer id;

    @Field
    private String name;
    private Integer age;
    private String sex;
    private String school;
}
